package com.hxit.servics.impl;

import com.hxit.mapper.KnowledgebaseMapper;
import com.hxit.pojo.Knowledgebase;
import com.hxit.servics.KnowledgebaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class KnowledgebaseImpl implements KnowledgebaseService {
    @Autowired
    private KnowledgebaseMapper knowledgebaseMapper;
    @Override
    public void AddKnowledgebases(Knowledgebase knowledgebase) {
        knowledgebaseMapper.AddKnowledgebases(knowledgebase);
    }

    @Override
    public void DeleteKnowledgebasesById(List<Integer> ids) {
        knowledgebaseMapper.DeleteKnowledgebasesById(ids);
    }

    @Override
    public Knowledgebase FindKnowledgebaseById(Integer id) {
        Knowledgebase knowledgebase=knowledgebaseMapper.FindKnowledgebaseById(id);
        return knowledgebase;
    }

    @Override
    public void UpdateKnowledgebases(Knowledgebase knowledgebase){
        knowledgebaseMapper.UpdateKnowledgebases(knowledgebase);
    }
}